home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
convert
/
coolview
/
view50_2.asm
< prev
next >
Wrap
Assembly Source File
|
1995-03-05
|
1KB
|
56 lines
; View 50-lines screen in Text Mode
; Coded '95 by Paradise, 1995.III.3
; Lublin, Poland
; paradise@bachus.umcs.lublin.pl
;
; Example : Include picture into com (or exe) file
;
; Need : piccy.m (converted from bin file by BIN2INC.EXE)
;
; Compile : tasm view50_2.asm
; tlink /t view50_2.obj
; pklite view50_2.exe
;
Code SEGMENT PARA PUBLIC 'CODE'
ASSUME CS:Code, DS:Code
Org 100h
Body PROC FAR
; set 400 scan lines
mov ax, 1202h
mov bl, 30h
int 10h
; set text mode
mov ax, 3h
int 10h
; load 8x8 font
mov ax, 1112h
mov bl, 0
int 10h
; move screen from data
push cs
pop ds
mov si, offset Piccy
mov dx, 0b800h
mov es, dx
xor di, di
mov cx, 4000
cld
rep movsw
; wait for keypressed
mov ah, 0
int 16h
; set 25-lines mode
mov ax, 3h
int 10h
; return to dos
mov ah, 4ch
int 21h
Body ENDP
Piccy LABEL WORD
include piccy.m
Code ENDS
END Body